package find


func MapFind(s string, m map[string]struct{}) bool {
	if _, ok := m[s]; ok {
		return true
	}
	return false
}

func StringFind(s string, longS string) bool {
	i := 0
	for i<len(longS) {
		if longS[i] == s[0] {
			return true
		}
		i++
	}
	return false
}

func ArrFind(s string, arrs []string) bool {
	i := 0
	for i<len(arrs) {
		if arrs[i] == s {
			return true
		}
		i++
	}
	return false
}